﻿capital = 276

if = {
	limit = {
		NOT = {
			has_dlc = "No Step Back"
		}
	}
	set_oob = "CAN_1936"
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_oob = "CAN_1936_nsb"
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_naval_oob = "CAN_1936_naval_mtg"
	else = {
		set_naval_oob = "CAN_1936_naval_legacy"
	}
}
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "CAN_1936_air_bba"
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			aircraft_construction = 1
			iw_small_airframe = 1
		}
	else = {
		set_air_oob = "CAN_1936_air_legacy"
	}
}

set_research_slots = 3
set_country_flag = monroe_doctrine
set_stability = 0.8
set_war_support = 0.1

recruit_character = CAN_mackenzie_king
recruit_character = CAN_adrien_arcand
recruit_character = CAN_tim_buck
recruit_character = CAN_j_s_woodsworth
recruit_character = CAN_thomas_victor_anderson
recruit_character = CAN_charles_foulkes
recruit_character = CAN_percival_john_montague
recruit_character = CAN_bert_hoffmeister
recruit_character = CAN_leonard_w_murray
recruit_character = CAN_ht_bailliegrohman
recruit_character = CAN_james_d_prentice
recruit_character = CAN_harry_dewolf
recruit_character = CAN_lloyd_samuel_breadner
recruit_character = CAN_george_pearkes
recruit_character = CAN_john_murchie
recruit_character = CAN_harold_edwards
recruit_character = CAN_frederick_m_w_harvey
recruit_character = CAN_harry_crerar
recruit_character = CAN_robert_leckie
recruit_character = CAN_kenneth_stuart
recruit_character = CAN_andrew_mcnaughton
recruit_character = CAN_george_jones
recruit_character = CAN_raymond_collishaw
recruit_character = CAN_guy_simonds
recruit_character = CAN_gino_verchiella
recruit_character = CAN_alasdair_murray
recruit_character = CAN_george_volkoff
recruit_character = CAN_george_croil
recruit_character = CAN_percy_nelles
recruit_character = CAN_robert_manion
recruit_character = CAN_ian_a_mackenzie
recruit_character = CAN_c_d_howe
recruit_character = CAN_newton_wesley_rowell
recruit_character = CAN_chuck_crate
recruit_character = CAN_james_ilsley
recruit_character = CAN_william_kashtan
recruit_character = CAN_leo_richer_lafleche
recruit_character = CAN_r_b_bennett
recruit_character = CAN_louis_st_laurent


# Starting tech
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_support = 1		
	tech_engineers = 1
	tech_recon = 1
	tech_trucks = 1
	gw_artillery = 1
	trench_warfare = 1
	fleet_in_being = 1
	basic_train = 1
}
if = {
	limit = {
		NOT = { has_dlc = "By Blood Alone" }
	}
	set_technology = {
		early_fighter = 1
		naval_bomber1 = 1
		early_bomber = 1
		
	}
}

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
		basic_light_tank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
		basic_light_tank_chassis = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
		transport = 1
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_light_battery = 1
		basic_torpedo = 1
		basic_depth_charges = 1
		mtg_transport = 1
	}
}

if = { 
	limit = { NOT = { has_dlc = "Together for Victory" } }
	set_cosmetic_tag = CAN_ALY
}
if = {
	limit = { has_dlc = "Together for Victory" }
	add_ideas = CAN_great_depression_1
	add_ideas = CAN_conscription_crisis
	set_cosmetic_tag = CAN_UK

	add_to_tech_sharing_group = commonwealth_research
}

1939.1.1 = {
	add_political_power = 1198
	add_command_power = 100
	
	
	if = {
		limit = { has_dlc = "Together for Victory" }
		complete_national_focus = CAN_army_modernization
		complete_national_focus = CAN_canadian_infantry_corps
		complete_national_focus = CAN_cmp_truck
		complete_national_focus = CAN_rcaf_station_borden
		complete_national_focus = CAN_halifax_shipyards
		complete_national_focus = CAN_destroyer_effort
		complete_national_focus = CAN_rowell_sirois_commission
		complete_national_focus = CAN_crown_corporations
		complete_national_focus = CAN_national_housing_act
		complete_national_focus = CAN_strengthen_the_commonwealth_ties
		complete_national_focus = CAN_montreal_laboratory_collaboration
    	complete_national_focus = CAN_shadow_factories #Mainly built from 1937-1940
		complete_national_focus = CAN_canada_pacific_railway
		complete_national_focus = CAN_maritime_colonial_railway
		complete_national_focus = CAN_we_have_the_hurricane
		
		else = {
			#generic focuses
			complete_national_focus = army_effort
			complete_national_focus = equipment_effort
			complete_national_focus = motorization_effort
			complete_national_focus = aviation_effort
			complete_national_focus = naval_effort
			complete_national_focus = large_navy
			complete_national_focus = industrial_effort
			complete_national_focus = construction_effort
			complete_national_focus = production_effort
		}
	}

	add_ideas = {
		#laws
		volunteer_only
		low_economic_mobilisation
	}

	
	oob = "CAN_1939"
	if = {
		limit = { has_dlc = "Man the Guns" }
			set_naval_oob = "CAN_1939_naval_mtg"
		else = {
			set_naval_oob = "CAN_1939_naval_legacy"
		}
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "CAN_1939_air_bba"
			set_technology = {
				iw_small_airframe = 1
				iw_medium_airframe = 1
				aa_lmg = 1
				early_bombs = 1
				engines_1 = 1
			}
		else = {
			set_air_oob = "CAN_1939_air_legacy"
			set_technology = {
				fighter1 = 1
			}
		}
	}
	set_technology = {
		interwar_artillery = 1
		interwar_antitank = 1
		infantry_weapons2 = 1
		support_weapons = 1
		support_weapons2 = 1

		#doctrines
		#Air
		force_rotation = 1
		fighter_baiting = 1

		grand_battle_plan = 1
		trench_warfare = 1
		fleet_in_being = 1
		battlefleet_concentration = 1
		subsidiary_carrier_role = 1
		convoy_sailing = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1
		mechanical_computing = 1
		computing_machine = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		synth_oil_experiments = 1
		fuel_silos = 1
		oil_processing = 1
		improved_oil_processing = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
	}
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		set_technology = {
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		set_technology = {
			basic_light_battery = 1
			sonar = 1
			improved_sonar = 1
			improved_depth_charges = 1
		}
	}
}

set_politics = {
	ruling_party = democratic
	last_election = "1935.10.14"
	election_frequency = 60
	elections_allowed = yes
}

set_popularities = {
	democratic = 98
	fascism = 1
	communism = 1
}

set_convoys = 100
set_stability = 0.75

### VARIANTS ###
# 1936 Start #
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	### Ship Variants ###
	create_equipment_variant = {
		name = "Sanguenay Class"
		type = destroyer_1
		upgrades = {
			ship_torpedo_upgrade = 1
			destroyer_engine_upgrade = 1
			ship_ASW_upgrade = 1
			ship_anti_air_upgrade = 1
		}
	}
}

if = {
	limit = { has_dlc = "Man the Guns" } 
	### Ship Variants ###
	# Destroyers #
	create_equipment_variant = {
		name = "S Class"
		type = ship_hull_light_1
		name_group = CAN_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = ship_depth_charge_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Sanguenay Class"
		type = ship_hull_light_1
		name_group = CAN_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_2
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_2
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = empty
		}
	}
}

# 1939 Start #
1939.1.1 = {
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		# Ship variants #
		create_equipment_variant = {
			name = "Athabaskan Class"
			type = destroyer_1
			upgrades = {
				ship_torpedo_upgrade = 2
				destroyer_engine_upgrade = 2
				ship_ASW_upgrade = 2
				ship_anti_air_upgrade = 2
			}
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		# Destroyers #
		create_equipment_variant = {
			name = "Iroquois Class"
			type = ship_hull_light_2
			name_group = CAN_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_battery_2
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = ship_sonar_2
				fixed_ship_engine_slot = light_ship_engine_2
				fixed_ship_torpedo_slot = ship_torpedo_1
				mid_1_custom_slot = ship_light_battery_2
				rear_1_custom_slot = ship_depth_charge_2
			}
		}
	}
}

1941.1.1 = {
    add_ideas = {
		limited_conscription
		war_economy
	}
    set_technology = { #Code from Campaign In the East
		tech_trucks = 1
		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		radio_detection = 1

		#industry
		excavation1 = 1

		#doctrine
		trench_warfare = 1
		grand_battle_plan = 1

		basic_machine_tools = 1

		fuel_silos = 1
		fuel_refining = 1

		construction1 = 1
		construction2 = 1

		dispersed_industry = 1

		early_fighter = 1

		support_weapons = 1

		infantry_weapons = 1

		improved_infantry_weapons = 1

		advanced_infantry_weapons = 1

		infantry_at = 1

		gw_artillery = 1
		artillery1 = 1

		interwar_antiair = 1

		interwar_antitank = 1

		motorised_infantry = 1

		tech_mountaineers = 1
		tech_support = 1

		tech_engineers = 1

		tech_recon = 1

		tech_field_hospital = 1

		tech_military_police = 1

		tech_maintenance_company = 1
		
		basic_train = 1
	}
    complete_national_focus = CAN_defence_of_canada_regulations #Sep 1939 on Canada's entry into WWII
	complete_national_focus = CAN_national_resources_mobilization_act #June 1940
	complete_national_focus = CAN_war_bonds #May 1940
	complete_national_focus = CAN_department_of_munitions_and_supply
	complete_national_focus = CAN_wartime_prices_and_trade_board #Sep 1939
	complete_national_focus = CAN_dollar_a_year_men #The one-dollar salary started becoming a Canadian trend after the outbreak of WWII
	complete_national_focus = CAN_bits_and_pieces_program
	complete_national_focus = CAN_fund_the_national_research_council #Participated in researching the RADAR in 1940
	complete_national_focus = CAN_commit_to_the_war
	complete_national_focus = CAN_send_in_the_zombies #June 1940
}

1942.1.1 = {
    complete_national_focus = CAN_camp_x #Dec 1941
    complete_national_focus = CAN_victory_aircraft_limited #Started in 1942
	complete_national_focus = CAN_retool_angus_shops #Most production was from 1942-1943 although there was some production in late 1941
	complete_national_focus = CAN_canada_wheat_board #In December 1941, the board was given the power to set maximums of certain foods
	complete_national_focus = CAN_john_inglis_and_company #Started production in 1940 and became prevalent after 1941
	complete_national_focus = CAN_if_day #Feb 1942
}

1944.1.1 = {
    set_technology = { #Code from 1944 - Downfall
		tech_trucks = 1
		#electronics
		electronic_mechanical_engineering = 1
		computing_machine = 1

		radio = 1
		radio_detection = 1
		decimetric_radar = 1
		improved_decimetric_radar = 1
		centimetric_radar = 1
		#improved_centimetric_radar = 1

		#industry
		excavation1 = 1
		excavation2 = 1
		excavation3 = 1
		excavation4 = 1

		#doctrine
		trench_warfare = 1
		grand_battle_plan = 1
		prepared_defense = 1
		grand_assault = 1
		grand_mechanized_offensive = 1
		assault_concentration = 1
		branch_interoperation = 1
		assault_breakthrough  = 1

		battlefleet_concentration = 1
		subsidiary_carrier_role = 1
		convoy_sailing = 1
		convoy_escorts = 1
		submarine_operations = 1
		hunter_killer_groups = 1
		floating_fortress = 1
		escort_carriers = 1
		integrated_convoy_defence = 1

		#Air
		air_superiority = 1
		home_defence = 1
		infrastructure_destruction = 1
		naval_strike_tactics = 1
		dogfighting_experience = 1
		multialtitude_flying = 1
		logistical_bombing = 1
		night_bombing = 1
		massed_bomber_formations = 1
		flying_fortress = 1

		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		assembly_line_production = 1

		fuel_silos = 1
		fuel_refining = 1
		fuel_refining2 = 1
		fuel_refining3 = 1
		fuel_refining4 = 1

		rubber_processing = 1
		improved_rubber_processing = 1

		construction1 = 1
		construction2 = 1
		construction3 = 1
		construction4 = 1

		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
		dispersed_industry4 = 1

		improved_centimetric_radar = 1

		naval_bomber1 = 1
		naval_bomber2 = 1

		CAS1 = 1
		CAS2 = 1

		tactical_bomber2 = 1

		early_fighter = 1
		fighter1 = 1
		fighter2 = 1

		support_weapons = 1
		support_weapons2 = 1
		support_weapons3 = 1
		support_weapons4 = 1

		infantry_weapons = 1
		infantry_weapons1 = 1

		improved_infantry_weapons = 1
		improved_infantry_weapons_2 = 1

		advanced_infantry_weapons = 1

		infantry_at = 1
		#infantry_at2 = 1

		gw_artillery = 1
		artillery1 = 1
		artillery2 = 1
		artillery3 = 1
		artillery4 = 1

		interwar_antiair = 1
		antiair1 = 1
		antiair2 = 1
		antiair3 = 1
		antiair4 = 1

		interwar_antitank = 1
		antitank1 = 1
		antitank2 = 1
		antitank3 = 1

		rocket_artillery = 1
		rocket_artillery2 = 1

		motorised_infantry = 1
		mechanised_infantry = 1
		mechanised_infantry2 = 1
		amphibious_mechanized_infantry = 1

		tech_mountaineers = 1
		paratroopers = 1
		paratroopers2 = 1
		paratroopers3 = 1

		marines = 1
		marines2 = 1
		marines3 = 1

		tech_logistics_company = 1
		tech_logistics_company2 = 1

		tech_support = 1

		tech_engineers = 1
		tech_engineers2 = 1
		tech_engineers3 = 1

		tech_recon = 1
		tech_recon2 = 1

		tech_field_hospital = 1
		tech_field_hospital2 = 1
		tech_field_hospital3 = 1

		tech_military_police = 1
		tech_military_police2 = 1

		tech_maintenance_company = 1
		tech_maintenance_company2 = 1

		tech_signal_company = 1
		tech_signal_company2 = 1
		
		basic_train = 1
	}
    oob = "CAN_1944"
	complete_national_focus = CAN_polymer_corporation #Production started at the end of 1943
	complete_national_focus = CAN_a_motorized_army
	complete_national_focus = CAN_1st_canadian_parachute_battalion
	complete_national_focus = CAN_royal_regiment_of_canadian_artillery
	complete_national_focus = CAN_red_deer_training_camp
	complete_national_focus = CAN_the_black_devils #July 1942
	complete_national_focus = CAN_the_rocky_mountain_rangers #Operation Cottage in 1943
	complete_national_focus = CAN_the_walkie_talkie
	complete_national_focus = CAN_the_plan
	complete_national_focus = CAN_mine_the_shield
}

1945.1.1 = {
    complete_national_focus = CAN_uranium_mining
	complete_national_focus = CAN_supply_the_empire
	complete_national_focus = CAN_aluminium_company_of_canada #Helped build the Spitfire aircraft
	complete_national_focus = CAN_alberta_coal_towns
	complete_national_focus = CAN_national_steel_car #The National Steel Car company helped build materiel in WWII
}